package com.xf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xf.common.core.entity.dmp.DmpOauthClientDetails;
import com.xf.mapper.DmpOauthClientDetailsMapper;
import com.xf.service.DmpOauthClientDetailsService;
/**
*@author JoeyLiu
*@create 2022-03-29 14:57
*/
@Service
public class DmpOauthClientDetailsServiceImpl extends ServiceImpl<DmpOauthClientDetailsMapper,DmpOauthClientDetails> implements DmpOauthClientDetailsService{

    @Resource
    private DmpOauthClientDetailsMapper dmpOauthClientDetailsMapper;

    @Override
    public int deleteByPrimaryKey(String clientId) {
        return dmpOauthClientDetailsMapper.deleteByPrimaryKey(clientId);
    }

    @Override
    public DmpOauthClientDetails selectByPrimaryKey(String clientId) {
        return dmpOauthClientDetailsMapper.selectByPrimaryKey(clientId);
    }

    @Override
    public int updateBatch(List<DmpOauthClientDetails> list) {
        return dmpOauthClientDetailsMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<DmpOauthClientDetails> list) {
        return dmpOauthClientDetailsMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<DmpOauthClientDetails> list) {
        return dmpOauthClientDetailsMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(DmpOauthClientDetails record) {
        return dmpOauthClientDetailsMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(DmpOauthClientDetails record) {
        return dmpOauthClientDetailsMapper.insertOrUpdateSelective(record);
    }

}
